fixed bug involving old revisions and the parser cache
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 28 May 2004 13:49:05 +0000 (13:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 28 May 2004 13:49:05 +0000 (13:49 +0000)
includes/Article.php

index 710508f..e26a8a4 100644 (file)
@@ -569,7 +569,7 @@ class Article {
                ) {
                        $wgOut->addWikiText( wfMsg('usercssjs'));
                        $wgOut->addHTML( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" );
-               } else if( $wgEnableParserCache && intval($wgUser->getOption( "stubthreshold" )) == 0 ){
+               } else if( $wgEnableParserCache && intval($wgUser->getOption( "stubthreshold" )) == 0 && empty( $oldid ) ){
                        $wgOut->addWikiText( $text, true, $this );
                } else {
                        $wgOut->addWikiText( $text );